﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Duck : Animal, ISwim
    {
        public override void Eat()
        {
            Console.WriteLine("{0}爱吃饭", this.Name);
        }
        public void Swim()
        {
            Console.WriteLine("{0}会游泳", this.Name);
        }
        public Duck() { }
        public Duck(string name) : base(name)
        {

        }
    }
}
